﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="detail.aspx.vb" Inherits="testing_tools.detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Tool_name" HeaderText="Tool_name" 
                SortExpression="Tool_name" />
            <asp:BoundField DataField="company" HeaderText="company" 
                SortExpression="company" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:HyperLinkField DataNavigateUrlFields="website" 
                DataNavigateUrlFormatString="{0}" DataTextField="Tool_name" 
                HeaderText="Website" />
            <asp:BoundField DataField="Michlinstars" HeaderText="Michlinstars" 
                SortExpression="Michlinstars" />
            <asp:BoundField DataField="version" HeaderText="version" 
                SortExpression="version" />
            <asp:ImageField DataImageUrlField="tool_picture" HeaderText="thumbnail">
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:testingtoolsConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:testingtoolsConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [Tool name] AS Tool_name, [Description], [company], [tool picture] AS tool_picture, [website], [Michlinstars], [version] FROM [testingtools] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
